package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Author: bowen
 * @Date: 2019/7/2 14:58
 * @Description:
 */
public interface RoleDao {

	Set<Role> findRolesByuserId(Integer id);
    	List<Role> findAll();

	Page<Role> findPage(String queryString);

    void add(Role role);

	void addConnectWithPremission(List list);

	void addRoleConnectWithMenu(List list);

    Role findRoleById(Integer id);

	Integer[] findConnectWithPerssion(Integer id);

	Integer[] findConnectWithMenu(Integer id);

    void edit(Role role);

	void deleteConnectWithPerssion(Integer id);

	void deleteConnectWithMenu(Integer id);

	Long findConnectWithUser(Integer id);

	void deleteRole(Integer id);
}
